<div class="row-fluid">
    <div class="span12">

<?php
    if (!empty($this->flashMessages)) {
        if ($this->groupType == 'status') {
            foreach ($this->flashMessages as $type => $messages) {

            ?>
                <div class="alert alert-<?php echo $type; ?>">
                    <a class="close" data-dismiss="alert" title="<?php echo $this->translate('Close'); ?>">×</a>
                    <ul>
                        <?php echo '<li>' . implode('</li><li>', $messages) . '</li>'; ?>
                    </ul>
                </div>
            <?php
            }
        } else {
            foreach ($this->flashMessages as $key => $flashMessage) {
            ?>
                <div class="alert alert-<?php echo $flashMessage['type']; ?>">
                    <a class="close" data-dismiss="alert" title="<?php echo $this->translate('Close'); ?>">×</a>
                    <?php echo $flashMessage['message']; ?>
                </div>
            <?php
            }
        }
    }
?>
    </div>
</div>